/*
 * Copyright (c) 2009.
 * nick@tmro.net
 */
package net.tmro.loko.domain.store;

import net.tmro.loko.domain.PersistentEntity;
import net.tmro.loko.domain.category.Category;

import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author nick
 */
@XmlRootElement
@Entity
@Table(name = "STORE")
public class Store extends PersistentEntity {

    @Column(name = "NAME")
    private String name;

    @ManyToOne
    @JoinColumn(name = "FK_CATEGORY_ID")
    private Category category;

    public Store() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }
}